#pragma once

#ifndef _STACK_H_
#define _STACK_H_

#include<string>

class stack
{
public:
	stack(int n);
	virtual ~stack(void);
	int* pop();
	int* peek() const;
	bool push(int new_ch);

	friend std::ostream& operator<< (std::ostream& out, stack& st);

private:
	int *stack_array;
	int top_pos;
	int size;
};

#endif